package FactorMethod;
import FactorMethod.framework.*;
import FactorMethod.idcard.*;

public class Main {
    public static void main(String[] args) {
        //创建具体工厂
        Factory factory=new IDCardFactory();
        //创建的factor用craete方法
        Product card1=factory.create("小明");
        Product card2=factory.create("小红");
        Product card3=factory.create("小刚");
        //使用use（）
        card1.use();
        card2.use();
        card3.use();
    }
}
